package com.youlai.boot.modules.delivery.converter;

import com.youlai.boot.modules.delivery.model.Delivery;
import com.youlai.boot.modules.delivery.model.DeliveryForm;
import com.youlai.boot.modules.delivery.model.DeliveryVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface DeliveryConverter {
    DeliveryVO toVO(Delivery delivery);

    Delivery toEntity(DeliveryForm form);

    DeliveryForm toForm(Delivery delivery);
}